package com.aspyn.pong;

public class Ball {
	private double x, y;
	private int radius, id;
	private double xvel, yvel;
	private int color;
	
	public Ball (int x, int y, double xvel, double yvel, int radius, int c, int id) {
		this.x = x;
		this.y = y;
		this.xvel = xvel;
		this.yvel = yvel;
		this.radius = radius;
		this.color = c;
		this.id = id;
	}
	
	public void move(double d, double e, Ball otherBall) {
		otherBall.setX(d);
		otherBall.setY(e);
	}
	
	public void setX(double d) {
		x = d;
	}
	
	public double getX() {
		return x;
	}
	
	public void setY(double e) {
		y = e;
	}
	
	public double getY() {
		return y;
	}
	
	public void setRadius(int radius2) {
		radius = radius2;
	}
	
	public int getRadius() {
		return radius;
	}
	
	public void setID(int id2) {
		id = id2;
	}
	
	public int getID() {
		return id;
	}
	
	public void setXVel(double d) {
		xvel = d;
	}
	
	public double getXVel() {
		return xvel;
	}
	
	public void setYVel(double yvel2) {
		yvel = yvel2;
	}
	
	public double getYVel() {
		return yvel;
	}
	
	public void setColor(int col2) {
		color = col2;
	}
	
	public int getColor() {
		return color;
	}
}
